package com.zhanghe.mall.pojo;

import com.zhanghe.mall.pojo.common.BasePojo;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 账户
 *
 * @author Clevo
 * @date 2018/10/10
 */
@Entity
@Table(name = "account")
public class Account extends BasePojo {
    /**
     * 邮箱
     */
    public String email;
    /**
     * 电话
     */
    public String phone;
    /**
     * 用户名
     */
    public String username;
    /**
     * 密码
     */
    public String password;
    /**
     * 创建ip
     */
    public String createIp;
    /**
     * 最近登录时间
     */
    public Date lastLoginTime;
    /**
     * 最近登录ip
     */
    public String lastLoginIp;
    /**
     * 登录次数
     */
    public Long loginTimes;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCreateIp() {
        return createIp;
    }

    public void setCreateIp(String createIp) {
        this.createIp = createIp;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    public Long getLoginTimes() {
        return loginTimes;
    }

    public void setLoginTimes(Long loginTimes) {
        this.loginTimes = loginTimes;
    }
}
